#include <stdio.h>
//typedef UINT64 unsigned long long 


//void  doubletostr(double* a, char* str){
void  floattostr(float* a, char my_str[64]){

	long c;
	c= ((long*)a)[0];
	int i;
	for(i=0;i<32;i++){
               my_str[31-i]=(char)(c&1)+'0';
		c>>=1;
	}
	my_str[32] = '\0';
}

void main(void)
{
	//char* str = "11000000000101000000000000000000000000000000000000000000000000000000000000";
	float a = 1.00;
	char  str[64] ;
	int i;
	floattostr(&a,str);
	printf("float is %lf \n", a );
	printf("float is %s\n", str );
}
